package board.renders.basics;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;

import board.renders.adapters.BoardBGRenderAdapter;
/** Render a basic white background.  
 * 
 *  This is the default render for GridPane.  
 * 
 * @author R.Wisniewski1101
 */
public class BasicBoardBGRender extends BoardBGRenderAdapter {
	@Override
	public Image getBG(int width, int height) {
		Image image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
		Graphics draw = image.getGraphics();
		draw.setColor(Color.WHITE);
		draw.fillRect(0, 0, width, height);
		return image;
	}
}
